package com.cosmos.codegen.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期工具
 * 
 * @date 2016-3-22 11:20:00
 * @version 1.0
 * @author zhuzhaoyong
 *
 */
public class DateUtil {

	public static final String FORMAT_1 = "yyyy-MM-dd HH:mm:ss";
	
	public static String getFormatTime(String format) {
		SimpleDateFormat sdf = new SimpleDateFormat(format);
		return sdf.format(new Date());
	}
}
